package com.wwt.springboot_vue.service;

import com.wwt.springboot_vue.bean.Goods;

import java.util.List;

public interface GoodsService {
    List<Goods> findAllGoods();
    List<Goods> findByLike(String query);
    List<Goods> findById(int goods_id);
    void delete(int goods_id);
    void add(String goods_name,
             int goods_price,
             int goods_number,
             String goods_intro,
             String goods_status,
             int category_id,
             String goods_img);
    void update(Goods goods);
    List<Goods> findByLimit(int start,int size);
    List<Goods> findByLikeLimit(String query ,int start,int size);
}
